<?php

class Debug 
{
	public static function dump($matriz, $titulo = "Debug")
	{
		if(DEBUG)
		{
			echo "--------------------------------------------------\n"
				.$titulo."\n"
				."..................................................\n\n"
				.print_r($matriz, true)."\n"
				."--------------------------------------------------\n\n";
		}
	}

	public static function say($txt)
	{
		if(DEBUG) echo "DEBUG> ".$txt."\n";
	}

	public static function info($txt)
	{
		if(INFO) echo "INFO> ".$txt."\n";
	}
	
	public static function error($txt)
	{
		echo "+--------------+\n"
		    ."| ERROR GRAVE: |\n"
		    ."+--------------+\n"
		    .$txt."\n";
		    
		die(1);
	}
}

?>